﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestConvert
{
    public class MainViewModel
    {
        public MainViewModel(bool colorFlag)
        {
            ColorFlag = true;
            Gender = 2;

            products = new List<object>();

            products.Add(new { Name = "产品一", Score = 90, Service = 40 });
            products.Add(new { Name = "产品二", Score = 70, Service = 70 });
            products.Add(new { Name = "产品三", Score = 50, Service = 80 });

        }

        public bool ColorFlag { get; set; }

        public int Gender { get; set; }

        public List<object> products { get; set; }  

    }
}
